package com.k2data.k2app.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.k2data.k2app.constant.Constant;
import lombok.Data;

import javax.persistence.Transient;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * @author lidong9144@163.com 17-3-20.
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class EventDTO implements Serializable {

    @Transient
    private static final long serialVersionUID = -1935165622255866940L;

    private Long id;
    private Long deviceId;
    private Long componentId;
    private String eventNo;
    private String eventName;
    private String owner;
    private String dealMethod;
    private String status;
    private String eventType;
    private String deviceName;
    private String customerName;
    @JsonFormat(pattern = Constant.ISO_FORMAT)
    private LocalDateTime startTime;
    @JsonFormat(pattern = Constant.ISO_FORMAT)
    private LocalDateTime endTime;
    private String detail;

    private Integer count;
    private Integer typeCount;

    private DeviceDTO device;

    private List<Map<String, String>> types;
    private List<EventDTO> eventList;

}
